package com.tbvtc.agriculturalcreditchainserver2025.entity.Addess;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("tz_area")
public class Area implements Serializable {
    private static final long serialVersionUID = -6013320537436191451L;
    @TableId
    @Schema(description = "地区id")
    private Long areaId;
    @Schema(description = "地区名称" )
    private String areaName;
    @Schema(description = "地区上级id" )
    private Long parentId;
    @Schema(description = "地区层级" )
    private Integer level;
    @TableField(exist=false)
    private List<Area> areas;
}